<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <script src="./dep.js"></script>
  <script src="./compiler.js"></script>
  <script src="./observer.js"></script>
  <script src="./myvue.js"></script>
  <!-- <script src="./lib/vue.2.7.14.js"></script> -->
</head>

<body>
  <div id="app">
    <h1>小胡子的使用</h1>
    <h2>{{msg}}</h2>
    <h2>{{count}}</h2>
    <hr>
    <h1>v-text的使用</h1>
    <h2 v-text="msg" class="box"></h2>
    <hr>
    <h1>v-model的使用</h1>
    <input type="text" v-model="msg">
    <input type="text" v-model="count">
  </div>
  <script>
    let vm = new Vue({
      el: "#app",
      data: {
        msg: "hello vue", // Dep subs[w]
        count: 18,  // Dep sub[w]
        // scores: [10, 20, 30]
      }
    });
  </script>
</body>

</html>